import loadable from "react-loadable";
import {
  RouteObject,
  PathRouteProps,
  createBrowserRouter,
} from "react-router-dom";

const Home = loadable({
  loader: () => import("./index"),
  loading: () => null,
});

const router: RouteObject[] = [
  {
    path: "/home",
    element: <Home />,
  },
];

export default router;